package com.thx.information.view;

import com.thx.information.model.InfoCommentLog;
import com.thx.information.model.InfoVoteItem;
import com.thx.information.model.Information;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

import javax.persistence.Transient;

public class InformationView implements java.io.Serializable {


  private static final long serialVersionUID = 1L;

  public String toString() {
    return ToStringBuilder.reflectionToString(this, ToStringStyle.DEFAULT_STYLE);
  }

  private Information information;
  
  // 投票对象
  private List<InfoVoteItem> infoVoteItem;
  // 评论记录
  private List<InfoCommentLog> infoCommentLog;
  // 投票记录
  private List<VoteItemLogView> infoVoteItemLog;
  
  // zhangyong 20141111 发布对象，人员、部门、角色
  @Transient
  private String ifReaded;// 是否已读zhangyong20141122

  //  @Transient
//  private Personnel personnel;// 存当前访问用户

  @Transient
  private Long viewCount;// 浏览次数

//  @Transient
//  private List<CommonAnnex> commonAnnexList;

  @Transient
  private String allBoundName;// 所有发布范围的名字

  @Transient
  private int infoNum;// 查询的条数
  // Constructors
  
  @Transient
  private int commentsNum;// 评论的数量
  
  @Transient
  private int voteJoinNum;// 投票参与人的数量

  public Information getInformation() {
    return information;
  }

  public void setInformation(Information information) {
    this.information = information;
  }

  public String getIfReaded() {
    return ifReaded;
  }

  public void setIfReaded(String ifReaded) {
    this.ifReaded = ifReaded;
  }

  public Long getViewCount() {
    return viewCount;
  }

  public void setViewCount(Long viewCount) {
    this.viewCount = viewCount;
  }

  public String getAllBoundName() {
    return allBoundName;
  }

  public void setAllBoundName(String allBoundName) {
    this.allBoundName = allBoundName;
  }

  public int getInfoNum() {
    return infoNum;
  }

  public void setInfoNum(int infoNum) {
    this.infoNum = infoNum;
  }

  public List<InfoVoteItem> getInfoVoteItem() {
    return infoVoteItem;
  }

  public void setInfoVoteItem(List<InfoVoteItem> infoVoteItem) {
    this.infoVoteItem = infoVoteItem;
  }

  public List<InfoCommentLog> getInfoCommentLog() {
    return infoCommentLog;
  }

  public void setInfoCommentLog(List<InfoCommentLog> infoCommentLog) {
    this.infoCommentLog = infoCommentLog;
  }

  public List<VoteItemLogView> getInfoVoteItemLog() {
    return infoVoteItemLog;
  }

  public void setInfoVoteItemLog(List<VoteItemLogView> infoVoteItemLog) {
    this.infoVoteItemLog = infoVoteItemLog;
  }

  public int getCommentsNum() {
    return commentsNum;
  }

  public void setCommentsNum(int commentsNum) {
    this.commentsNum = commentsNum;
  }

  public int getVoteJoinNum() {
    return voteJoinNum;
  }

  public void setVoteJoinNum(int voteJoinNum) {
    this.voteJoinNum = voteJoinNum;
  }
}
